package utils;

import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.Locale;

public class Formatter {
	
	public Formatter() {}
	
	static public String DecimalFormatter(double value){
		Locale uk = new Locale("en","UK");
		DecimalFormat formatter = new DecimalFormat("",new DecimalFormatSymbols(uk));
		formatter.setDecimalSeparatorAlwaysShown(false);
		formatter.setGroupingUsed(false);
		return formatter.format(value);
	}
	
	public static void main(String[] args) {
		System.out.println(Formatter.DecimalFormatter(246544.34534000));
	}
	
}
